﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Enterprise.Infrastructure;
using Enterprise.Model.BusiTravel;
using Enterprise.Service.BusiTravel;
using Enterprise.Model.WorkFlow;
using Enterprise.Service.WorkFlow;
namespace Enterprise.UI.Web.Modules.BusiTravel
{
    public partial class CheckIndex : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                OnStart();
            }
        }


        private void OnStart()
        {
            int UserId = Utility.Get_UserId;
            BusiTravelService bService = new BusiTravelService();
            var checklist = bService.BusiTravelUnCheck(UserId);

            var query = from p in bService.BusiTravelList()
                        join pp in checklist on p.BID equals pp.WFID
                        select p;
            GridView1.DataSource = query;
            GridView1.DataBind();
        }

    }
}